//
//  ATMotionManager.h
//  ATGaode_demo
//
//  Created by Chengquan Ye on 2019/3/11.
//  Copyright © 2019年 Chengquan Ye. All rights reserved.
//  加速仪管理

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

// accelerameter: 加速仪的判断值
typedef void (^ATCompletionBlock)(double accelerameter);

@interface ATMotionManager : NSObject

+ (instancetype)manager;

/** 开始监听加速仪 */
- (void)start:(ATCompletionBlock)completinBlock;

- (void)startGyroUpdates;

/** 结束监听加速仪 */
- (void)stop;

@end

NS_ASSUME_NONNULL_END
